Integrand size = 12, antiderivative size = 6 \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=x-\cos (x) \]
[Out]
Time = 0.07 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4476, 2761, 8} \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=x-\cos (x) \]
[In]
[Out]
Rule 8
Rule 2761
Rule 4476
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cos ^2(x)}{1-\sin (x)} \, dx \\ & = -\cos (x)+\int 1 \, dx \\ & = x-\cos (x) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(34\) vs. \(2(6)=12\).
Time = 0.08 (sec) , antiderivative size = 34, normalized size of antiderivative = 5.67 \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=-\cos (x)-2 \arcsin \left (\frac {\sqrt {1-\sin (x)}}{\sqrt {2}}\right ) \sqrt {\cos ^2(x)} \sec (x) \]
[In]
[Out]
Time = 1.41 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.17
method | result | size |
risch | \(x -\cos \left (x \right )\) | \(7\) |
default | \(-\frac {2}{1+\tan \left (\frac {x}{2}\right )^{2}}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(21\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.00 \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=x - \cos \left (x\right ) \]
[In]
[Out]
\[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=\int \frac {\cos {\left (x \right )}}{- \tan {\left (x \right )} + \sec {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 30 vs. \(2 (6) = 12\).
Time = 0.29 (sec) , antiderivative size = 30, normalized size of antiderivative = 5.00 \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=-\frac {2}{\frac {\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1} + 2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 14 vs. \(2 (6) = 12\).
Time = 0.29 (sec) , antiderivative size = 14, normalized size of antiderivative = 2.33 \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=x - \frac {2}{\tan \left (\frac {1}{2} \, x\right )^{2} + 1} \]
[In]
[Out]
Time = 22.34 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.00 \[ \int \frac {\cos (x)}{\sec (x)-\tan (x)} \, dx=x-\cos \left (x\right ) \]
[In]
[Out]